package com.pig4cloud.pig.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.demo.feign.Entity.Article;
import com.pig4cloud.pig.demo.feign.vo.MyArticleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    @Select("select * from article where id = #{id}")
    public Article findById(Long id);

    public List<MyArticleVO> queryMyArticleVO(@Param("id") Long userId);
}
